home *** CD-ROM | disk | FTP | other *** search
- Path: news.candu.aecl.ca!news
- From: Mark Kotyk <kotykm@sask.aecl.ca>
- Newsgroups: comp.lang.c++
- Subject: Re: How do you send ouput to the printer??
- Date: Wed, 31 Jan 1996 13:10:09 -0600
- Organization: AECL
- Message-ID: <310FBE91.65B0@sask.aecl.ca>
- References: <4en2f8$ds3@newsbf02.news.aol.com>
- NNTP-Posting-Host: speed.sask.aecl.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
-
- Recursion wrote:
- >
- > How do you send your cout statements to a printer. Can anyone help
- > Please??
-
- Don't you have to open a new stream.
-
- ie: prn or lpt1
-
- in C this would be
-
- FILE *printer;
- printer=fopen("LPT1","wt");
-
- I haven't played with the C++ streams enough to know it in c++.
-